from odoo import fields, models, api


class IncentiveSetting(models.Model):
    _name = "zt.incentive.setting"
    _description = "考核项配置-激励项评分配置"
    _rec_name = 'assess_project'

    assessment_object = fields.Selection(
        [('部门员工', '部门员工'),
         ('部门经理', '部门经理'),
         ], default='部门员工', string='考核对象')

    classification = fields.Selection(
        [('重点工作', '重点工作'),
         ('日常工作', '日常工作'),
         ('职业素养', '职业素养'),
         ], default='日常工作', string='分类')
    assess_project = fields.Char('考核项目')
    index_require = fields.Char('指标要求')
    scoring_rules = fields.Char('计分规则')

    zt_department = fields.Many2one('hr.department', string='考核部门')

    points = fields.Integer('分值', default=10)

    weights = fields.Float('权重')

    rater = fields.Many2one('hr.employee', string='评分人')





